package com.sservice.commonBusiness.service;

import com.sservice.commonBusiness.e.Category;
import com.sservice.commonBusiness.vo.CategoryVo;

import java.util.List;

/**
 * Created by byte_su@163.com on 2018/01/12.
 */
public interface CategoryService {
    /**
     * 根据查询条件进行查找
     *
     * @param category
     * @return
     */
    List<Category> findByExample(Category category);

    List<CategoryVo> page(CategoryVo category);

    int countByPage(CategoryVo category);

    List<CategoryVo> queryByPage(CategoryVo category);

    int deleteByPrimaryKey(Integer id);

    int insertSelective(Category record);

    Category selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Category record);

    Category selectBy(Category record);

    Integer countPlainByPage(CategoryVo data);

    /**
     * 纯数据查询
     *
     * @param data
     * @return
     */
    List<CategoryVo> queryPlainByPage(CategoryVo data);

}
